chrome.extension.sendRequest({greeting: "hello"}, function(response) {
  console.log(response.farewell);
});


//chrome.extension.onConnect.addListener(function(port) {
//  port.onMessage.addListener(function(msg) {
//    port.postMessage({counter: msg.counter+1});
//  });
//});

//chrome.extension.onRequest.addListener(
//  function(request, sender, sendResponse) {
//    sendResponse({counter: request.counter+1});
//  });
